package com.byedu.domain.course.vo.enumvos;

import com.byedu.model.enums.CityTypeEnum;
import com.byedu.model.enums.GenderTypeEnum;

/**
 * Created by jason on 2017/5/20.
 */
public class CityTypeVO {
    private String value;

    public CityTypeVO() {
    }

    public CityTypeVO(String value) {
        for (CityTypeEnum cityTypeEnum : CityTypeEnum.values()) {
            if (cityTypeEnum.getValue() == value) {
                this.value = cityTypeEnum.getValue();
            }
        }
    }

    public CityTypeVO(GenderTypeEnum genderType) {
        this.value = genderType.getValue();
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    @Override
    public String toString()
    {
        return this.value;
    }
}
